<?php
class InitController extends Zend_Controller_Action {
    	
	public function init()
    {
		$this->_auth = Zend_Auth::getInstance();
        $this->view->user = $this->_auth->getIdentity();
    }
    
    public function preDispatch()
    {
        if (!$this->_auth->hasIdentity())
        {
            $this->_forward('process', 'index');
        }
    }
}